<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button type="button" onclick="goToC()">跳转到C</button>
		<button type="button" onclick="btnBack()">回到前一页</button>
		<button type="button" onclick="btnGo()">跳到后一页</button>
		<button type="button" id="btn1">刷新</button>
	</body>
	
	<script type="text/javascript">
		function goToC(){
			location.href = 'C.html';
		}
		
		function btnBack(){
			history.back();
		}
		
		function btnGo(){
			history.forward();
		}
		document.getElementById("btn1").onclick = function(){
			location.reload();
		}
		document.getElementById("btn1").onclick = function(){
			location.reload();
		}
	</script>
</html>
